package cn.itguy.mobileguard.activity;

import cn.itguy.mobileguard.R;
import android.os.Bundle;
import android.text.SpannableStringBuilder;
import android.text.style.TextAppearanceSpan;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

public class HelpActivity extends BaseActivity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		setContentView(R.layout.activity_help);
		
		Button btn_back = (Button) findViewById(R.id.btn_left);
		btn_back.setVisibility(View.VISIBLE);
		btn_back.setOnClickListener(this);
		
		((TextView) findViewById(R.id.tv_title)).setText(R.string.titleText_help);
		
		TextView tv_introduction = (TextView) findViewById(R.id.tv_introduction);
		SpannableStringBuilder builder = new SpannableStringBuilder(getString(R.string.contentText_introduction));
		builder.setSpan(new TextAppearanceSpan(this, R.style.TextViewTheme_Medium_Less_Blue), 0, builder.length(), SpannableStringBuilder.SPAN_EXCLUSIVE_EXCLUSIVE);
		tv_introduction.append(builder);
		
		TextView tv_scene = (TextView) findViewById(R.id.tv_scene);
		builder.clear();
		builder.append(getString(R.string.contentText_scene));
		builder.setSpan(new TextAppearanceSpan(this, R.style.TextViewTheme_Medium_Less_Blue), 0, builder.length(), SpannableStringBuilder.SPAN_EXCLUSIVE_EXCLUSIVE);
		tv_scene.append(builder);
	}

	@Override
	public void onClick(View v) {
		finish();
	}

}
